from PySide2.QtWidgets import QLabel
from PySide2.QtCore import Signal
from PySide2.QtGui import Qt

class LabelButton(QLabel):
    
    clicked = Signal()

    def mouseReleaseEvent(self, QMouseEvent):
        if QMouseEvent.button() == Qt.LeftButton:
            self.clicked.emit()
